package jgl.vajra.management.part.mine.viewModel;

import java.util.Map;

import jgl.vajra.management.bean.MyTeamPeopleNumBean;
import jgl.vajra.management.part.mine.contract.MyTeamContract;
import jgl.vajra.management.part.mine.model.MyTeamModel;
import jgl.vajra.management.widget.mvvm.factory.CreateModel;
import jgl.vajra.management.widget.retrofithelper.rxsubscriber.ProgressObserver;

@CreateModel(MyTeamModel.class)
public class MyTeamViewModel extends MyTeamContract.ViewModel{
    @Override
    public void getMyTeamPeopleNum(Map<String, Object> map) {
        mModel.getMyTeamPeopleNum(map).subscribe(new ProgressObserver<MyTeamPeopleNumBean>(false,this) {
            @Override
            public void _onNext(MyTeamPeopleNumBean data) {
                mView.returnMyTeamPeopleNumData(data);
            }
        });
    }
}
